
.bg {
    position: relative;
    background-image: url(https://omo-oss-image.thefastimg.com/portal-saas/new2023082522101567997/cms/image/ee5b80fc-c2b1-4c55-97fc-12130694253d.jpg);
    width: 100%;
    height: 700px;
    background-size: cover;
}

.bg-text {
    position: absolute;
    top: 25%;
    left: 5%;
    color: #fff;
    font-size: 5rem;
}

.bg-text p {
    margin: 0;
}

/* 新增选项卡样式 */
.category-nav {
    margin: 20px 0;
    padding: 0 30px;
}

.category-tabs {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    padding: 12px 24px;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.tab-item:hover {
    background: #e0e0e0;
}

.tab-item.active {
    background: #0056a2;
    color: white;
}

/* 分类内容区 */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.searchBox {
    box-sizing: border-box;
    padding: 30px;
    width: 100%;
    height: 100px;
    display: flex;
}

input {
    border-radius: 10px;
    padding: 10px;
    width: 90%;
    height: 40px;
    font-size: larger;
    border: 1px solid #a4a2a2;
}

input:focus {
    outline: none;
    border-color: #0056a2;
    /* 设置聚焦时的边框颜色为蓝色 */
}

button {
    width: 10%;
    height: 60px;
    background-color: #0056a2;
    border-radius: 10px;
    color: #fff;
}

button:active {
    transform: scale(0.98);
}

.cardBox {
    box-sizing: border-box;
    padding: 20px 0 120px 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* 自动填充列，最小宽度70px，最大1fr */
    grid-gap: 20px;
    /* 各个项之间的间距 */
    justify-items: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
}
.card{
    width: 300px;
    height: 350px;
}
.cardimg{
    width: 100%;
    height: 300px;
}
.exp{
    height: 50px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover .exp {
    background-color: #5292c9;
    color: white;
}


.card:hover {
    box-shadow: 0 4px 16px rgba(0, 120, 255, 0.3);
}

.card:hover .exp p {
    color: white;
}

.card:hover .exp div p {
    color: #80b3ff;
}
